{%include file="header.html"%}
<style>
    table{text-align:center;}
  th{text-align:center; font-weight: bolder;background-color: #e5f6fe;}
.firtd {	width: 100px;	padding-right: 10px;	text-align: right;}
input {	width: 350px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>广告位置</h3>
    <div style="background:rgba(251,112,45,1);width:125px;height:40px;float:right;text-align:center;border-radius:5px;">
      <a href="ads.php?act=ads_add">
        <h5 style="padding:10px;color:#fff;">
          添加广告位
        </h5>
      </a>
    </div>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1">
    <table align="center;" class="table tb-type2">
      <thead>
        <tr>
          <th width="50"><a href="">编号</a></th>
          <th><a href="">广告位名称</a></th>
          <th><a href="">位置宽度</a></th>
          <th><a href="">位置高度</a></th>
          <th><a href="">广告位描述</a></th>
          <th><a href="">操作</a></th>
        </tr>
      </thead>
      <tbody>
        {%foreach from=$ad_posinfo item=list%}
            <tr>
              <td>{%$list.position_id%}</td>
              <td>{%$list.position_name%}</td>
              <td>{%$list.ad_width%}</td>
              <td>{%$list.ad_height%}</td>
              <td>{%$list.position_desc%}</td>
              <td>
                <a href="ads.php?act=ads_list&position_id={%$list.position_id%}">查看</a>
                <a href="ads.php?act=ads_posiedit&position_id={%$list.position_id%}">编辑</a>
                <a href="ads.php?act=ads_del&position_id={%$list.position_id%}">删除</a>
              </td>
            </tr>
        {%/foreach%}
      </tbody>
    </table>
  </form>
</div>
</body>
</html>